package com.aispeech.task.api.data.vo;

import com.fasterxml.jackson.annotation.JsonView;

public class User {
    private String username;

    private String passsword;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.passsword = password;
    }

    @JsonView(WithoutPasswordView.class)
    public String getUsername() {
        return username;
    }

    @JsonView(FullView.class)
    public String getPasssword() {
        return passsword;
    }

    public interface WithoutPasswordView {
    }

    public interface FullView extends WithoutPasswordView {
    }
}
